package com.zr.dto;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author: peterChen
 * @date: 2019/11/12 14:06
 * @description: com.zr.dto
 * @version: 1.0
 */
public class RoleDTO {
    private Long id;
    private String name; // 角色名称
    private String keyword; // 角色关键字，用于权限控制
    private String description; // 描述
    private Set<UserDTO> users = new HashSet<UserDTO>(0);
    private LinkedHashSet<MenuDTO> menus = new LinkedHashSet<MenuDTO>(0);

    public Long  getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Set<UserDTO> getUsers() {
        return users;
    }

    public void setUsers(Set<UserDTO> users) {
        this.users = users;
    }

    public LinkedHashSet<MenuDTO> getMenus() {
        return menus;
    }

    public void setMenus(LinkedHashSet<MenuDTO> menus) {
        this.menus = menus;
    }
}
